package com.zjxf.base.bean.po;

import com.zjxf.base.common.IdEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * 农副产品
 *
 * @author ZhangWei
 * @date 2021/4/6/006 14:30
 */
@Setter
@Getter
@Entity
@Table(name = "pms_as_product")
//Agricultural and sideline
public class PmsAsProduct extends IdEntity {

    /**
     * 商品分类id
     */
    @Column(name = "as_classify_id", columnDefinition = "bigint(11) comment '农副商品分类id'")
    private Long asClassifyId;

    /**
     * 店铺id
     */
    @Column(name = "store_id", columnDefinition = "bigint(11) comment '店铺id'")
    private Long storeId;

    /**
     * 商品名称
     */
    @Column(name = "name", columnDefinition = "varchar(64) comment '商品名称'")
    private String name;

    /**
     * 副标题
     */
    @Column(name = "subtitle_name", columnDefinition = "varchar(255) comment '副标题'")
    private String subtitleName;

    /**
     * 商品位置类型
     */
    @Column(name = "show_localtion", columnDefinition = "bigint(3) comment '商品位置类型 0：一乡一品，1：红军梁百姓餐'")
    private Integer showLocation;

    /**
     * 商品编号
     */
    @Column(name = "sn", columnDefinition = "varchar(64) comment '商品编号'")
    private String sn;

    /**
     * 商品品牌
     */
    @Column(name = "brand", columnDefinition = "varchar(32) comment '商品品牌'")
    private String brand;

    /**
     * 商品售价
     */
    @Column(name = "price", columnDefinition = "decimal(10,2) comment '商品售价'")
    private BigDecimal price;

    /**
     * 市场价
     */
    @Column(name = "original_pricce", columnDefinition = "decimal(10,2) comment '市场价'")
    private BigDecimal originalPrice;

    /**
     * 库存
     */
    @Column(name = "stock", columnDefinition = "bigint(3) comment '库存'")
    private Integer stock;

    /**
     * 计量单位
     */
    @Column(name = "unit", columnDefinition = "varchar(16) comment '计量单位'")
    private String unit;

    /**
     * 商品重量,默认为克
     */
    @Column(name = "weight", columnDefinition = "decimal(10,2) comment '商品重量'")
    private BigDecimal weight;

    /**
     * 销售属性
     */
    @Column(name = "sell_data", columnDefinition = "varchar(64) comment '销售属性'")
    private String sellData;

    /**
     * 展示属性 多个","隔开
     */
    @Column(name = "show_data", columnDefinition = "varchar(255) comment '销售属性'")
    private String showData;

    /**
     * 图片集
     */
    @Column(name = "pics", columnDefinition = "varchar(255) comment '图片集'")
    private String pics;

    /**
     * 商品详情
     */
    @Column(name = "detail_html", columnDefinition = "longtext comment '商品详情'")
    private String detailHtml;

    /**
     * 商品上架状态
     */
    @Column(name = "publish_status", columnDefinition = "bigint(3) comment '商品上架状态'")
    private Integer publishStatus;

    /**
     * 发布人
     */
    @Column(name = "publisher_id", columnDefinition = "bigint(11) comment '发布人id'")
    private Long publisherId;

    /**
     * 审核状态
     */
    @Column(name = "verify_status", columnDefinition = "bigint(3) comment '审核状态'")
    private Integer verifyStatus;

    /**
     * 审核人id
     */
    @Column(name = "verifier_id", columnDefinition = "bigint(11) comment '审核人id'")
    private Long verifierId;

    /**
     * 未通过原因
     */
    @Column(name = "reason",columnDefinition = "varchar(255) comment '原因'")
    private String reason;

}
